package com.wondertek.poms.search.service.impl;

import com.wondertek.poms.dao.po.es.ContentVo;
import com.wondertek.poms.dao.repo.es.IPrdContESDao;
import com.wondertek.poms.search.service.IPrdContESService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author chenjijiang
 * @description
 */
@Service
public class PrdContESServiceImpl implements IPrdContESService {
	@Autowired
	private IPrdContESDao iPrdContESDao;

	@Override
	public long getContentCountByMap(Map<String, Object> paramMap, Long id) {
		return iPrdContESDao.getContentCountByMap(paramMap, id);
	}

	@Override
	public long getProvinceContentCountByMap(Map<String, Object> paramMap, Long id) {
		return iPrdContESDao.getProvinceContentCountByMap(paramMap, id);
	}

	@Override
	public List<ContentVo> getContentList(Map<String, Object> paramMap, int start, int limit, Long id) {
		return iPrdContESDao.getContentList(paramMap, start, limit, id);
	}

	@Override
	public List<ContentVo> getProvinceContentList(Map<String, Object> paramMap, int start, int limit, Long id) {
		return iPrdContESDao.getProvinceContentList(paramMap, start, limit, id);
	}

	@Override
	public void updatePubStatus(String prdContId, String status) {
		iPrdContESDao.updatePubStatus(prdContId, status);
	}

	@Override
	public void updateDistStatus(String contentId, String status) {
		iPrdContESDao.updateDistStatus(contentId, status);
	}

	@Override
	public void updateCategoryList(String contentId, long prdInfoId) {
		iPrdContESDao.updateCategoryList(contentId, prdInfoId);
	}

	@Override
	public void updatePublishBySerialCont(String serialContId, Long prdInfoId) {
		iPrdContESDao.updatePublishBySerialCont(serialContId, prdInfoId);
	}

	@Override
	public void updatePrdInfo(String contentId, Long prdInfoIdOld, Long prdInfoIdNew) {
		iPrdContESDao.updatePrdInfo(contentId, prdInfoIdOld, prdInfoIdNew);
	}

	@Override
	public void updateVomsPubStatus(Long prdContId, int status) {
		iPrdContESDao.updateVomsPubStatus(prdContId, status);
	}

	@Override
	public void republishLive(String contId, boolean bOnline, boolean isChannel) {
		iPrdContESDao.republishLive(contId, bOnline, isChannel);
	}

	@Override
	public void updateAndDelSerials(String contIds, Long prdInfoId) {
		iPrdContESDao.updateAndDelSerials(contIds, prdInfoId);
	}

	@Override
	public void updateAndDelLiveSerials(String contIds, Long prdInfoId) {
		iPrdContESDao.updateAndDelLiveSerials(contIds, prdInfoId);
	}

	@Override
	public void updateAndDelSerialsByInLimitRule(String contIds, Long prdInfoId) {
		iPrdContESDao.updateAndDelSerialsByInLimitRule(contIds, prdInfoId);
	}

	@Override
	public void updateAndDelLiveSerialsByInLimitRule(String contIds, Long prdInfoId) {
		iPrdContESDao.updateAndDelLiveSerialsByInLimitRule(contIds, prdInfoId);
	}

	@Override
	public void updateCisStatusToThree(String prdContId) {
		iPrdContESDao.updateCisStatusToThree(prdContId);
	}

	@Override
	public void updatePrdContByAddOrUpdateCis() {
		iPrdContESDao.updatePrdContByAddOrUpdateCis();
	}

	@Override
	public void updateJmSearchStatus(Long prdContId, int status) {
		iPrdContESDao.updateJmSearchStatus(prdContId, status);
	}

	@Override
	public void updatePrdInfoByPrdContId(Long prdContId, Long prdInfoIdNew) {
		iPrdContESDao.updatePrdInfoByPrdContId(prdContId, prdInfoIdNew);
	}

	@Override
	public long getPVContentCountByMap(Map<String, Object> paramMap) {
		return iPrdContESDao.getPVContentCountByMap(paramMap);
	}

	@Override
	public List<ContentVo> getPVContentList(Map<String, Object> paramMap, int start, int limit) {
		return iPrdContESDao.getPVContentList(paramMap, start, limit);
	}
}
